package com.fuxin.feign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class FeignController {

    @Autowired
    FeignClient client;

    @RequestMapping("/hello")
    Map<String,String> hello(@RequestParam String param){
        return client.hello(param);
    }
}
